# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd

df = pd.read_csv('data/stock.csv')

# 自定义运算
result = df[['open', 'close']].apply(lambda x: x.max() - x.min())
print(result)
